#include<iostream>
using namespace std;

int main(){
    bool a = true;
    bool b = false;

    //优先级: !, &&, ||
    bool result1 = 1 || 1 && 0; //1
    bool result2 = 0 || 1 && 0; //0
    bool result3 = 0 || 1 && 1; //1
    bool result4 = 0 || 0 && 1; //0

    std::cout << "result1: " << result1 << std::endl;
    std::cout << "result2: " << result2 << std::endl;
    std::cout << "result3: " << result3 << std::endl;
    std::cout << "result4: " << result4 << std::endl;
    return 0;
}